package com.study.demo.valid;

import java.lang.annotation.*;

/**
 * @author liuhongzhen
 * @date 2022/4/26 11:18
 */

@Target({ElementType.FIELD})
//保留注解到程序运行时。（Runtime阶段）
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DoubleToInt {

    int ratio() default 1;

    String description() default "";

}
